/*
 * XML Type:  PresentmentDetailTransactionResponse
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.PresentmentDetailTransactionResponse
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML PresentmentDetailTransactionResponse(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class PresentmentDetailTransactionResponseImpl extends net.ofx.types.x2003.x04.impl.AbstractTransactionResponseImpl implements net.ofx.types.x2003.x04.PresentmentDetailTransactionResponse
{
    
    public PresentmentDetailTransactionResponseImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName PRESDETAILRS$0 = 
        new javax.xml.namespace.QName("", "PRESDETAILRS");
    
    
    /**
     * Gets the "PRESDETAILRS" element
     */
    public net.ofx.types.x2003.x04.PresentmentDetailResponse getPRESDETAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailResponse target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailResponse)get_store().find_element_user(PRESDETAILRS$0, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "PRESDETAILRS" element
     */
    public boolean isSetPRESDETAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PRESDETAILRS$0) != 0;
        }
    }
    
    /**
     * Sets the "PRESDETAILRS" element
     */
    public void setPRESDETAILRS(net.ofx.types.x2003.x04.PresentmentDetailResponse presdetailrs)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailResponse target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailResponse)get_store().find_element_user(PRESDETAILRS$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.PresentmentDetailResponse)get_store().add_element_user(PRESDETAILRS$0);
            }
            target.set(presdetailrs);
        }
    }
    
    /**
     * Appends and returns a new empty "PRESDETAILRS" element
     */
    public net.ofx.types.x2003.x04.PresentmentDetailResponse addNewPRESDETAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.PresentmentDetailResponse target = null;
            target = (net.ofx.types.x2003.x04.PresentmentDetailResponse)get_store().add_element_user(PRESDETAILRS$0);
            return target;
        }
    }
    
    /**
     * Unsets the "PRESDETAILRS" element
     */
    public void unsetPRESDETAILRS()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PRESDETAILRS$0, 0);
        }
    }
}
